package cp1300.ass1.trafficlight;

/**
 * @author MorbidSaint
 *  
 * 
 */

/**
 * Acts as a Value Object to hold the Traffic Light co-ordinates and the signal
 */
public class TrafficLight {

    /**
     * Signal R-Red G-Green
     */
    char sSignal;
    /**
     * X-axis postion of the traffic light
     */
    int iXpos;
    /**
     * Y-axis position of the traffic light
     */
    int iYpos;
    
    /**
     * Getter for the Signal Information
     * @return sSignal Signal Information
     */
    
    public char getSignal() {
        return sSignal;
    }
    
    /**
     * 
     * Setter for Signal Information
     * @param sSignal Setting the signal information from red to green or vice versa
     */
    
    public void setSignal(char sSignal) {
        this.sSignal = sSignal;
    }
    
    /**
     * 
     * @return Traffic Lights X Position
     */
    public int getXpos() {
        return iXpos;
    }
    /**
     * 
     * @param iXpos X-axis position for Traffic Light
     */
    public void setXpos(int iXpos) {
        this.iXpos = iXpos;
    }
    /**
     * 
     * @return Y-axis Position for Traffic Light
     */
    public int getYpos() {
        return iYpos;
    }
    /**
     * 
     * @param iYpos Y-axis position for Traffic Light
     */
    public void setYpos(int iYpos) {
        this.iYpos = iYpos;
    }
    
    
}

